<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="css/styles.css">
	<title>${title}</title>
</head>
<body>
<h2>Rechnung bearbeiten</h2>

	<c:if test="${not empty errorMessage}">
	  <h2 class=error>${errorMessage}</h2>
	  <hr/>
	</c:if>
	
  <form action="${actionURL}" method="post">
	  <table>
	    <tbody>
	      <tr>
	        <th>Rechnung-Datum:</th>
	        <td>
	           <input type="hidden" name="${rechnungFields.ID}" value="${rechnung.id}"/>
	           <input type="text" size="8" maxlength="10" name="${rechnungFields.DATE}" value="${rechnung.dateString}"/>
	        </td>
	        <td class="smallpx"> Datum bitte im Format <b>JJJJ-MM-TT</b> eingeben!</td>
	      </tr>
	      <tr>
	        <th align = right>KundenID:</th>
	        <td><input type="text" size="8" maxlength="10" name="${rechnungFields.KUNDENID}" value="${rechnung.kundenID}"readonly/></td>
	        <td class="smallpx">readonly!! ;-)</td>
	      </tr>
	      <tr>
	        <td colspan="1" align="right"><input type="submit" name="submit" value="speichern"></td>
	        <td colspan="1" align="left"><input type="submit" name="back" value="zur&uuml;ck"/>
	      </tr>
	    </tbody>
	  </table>
  </form>
</body>
</html>